import { useFriendApi } from '@/services/api';
import { useBaseModel } from '@/hooks/baseModel';

export default function Project() {
  const friendApi = useFriendApi();

  const listModel = useBaseModel(() => friendApi.list(0));
  listModel.loadData.autoRun([]);

  const infoModel = useBaseModel((id: string) => friendApi.info(id));

  return {
    listModel,
    infoModel,
  };
}
